package com.sfac.javaEE.service;

import com.sfac.javaEE.common.Result;
import com.sfac.javaEE.entity.User;

import javax.servlet.http.HttpServletRequest;

public interface UserService {

    Result<User> insertUser(User user);

    Result<User> updatetUser(User user);

    User getUserById(int id);

    Result<Object> deleteUserById(int id);

    Result<User> getUserByUserNameAndPassword(HttpServletRequest req,
                                              String userName, String password);

    void loginout(HttpServletRequest req);
}

